package com.tanguy.driver.bean;

import com.tanguy.driver.R;

/**
 * Created by dab on 2017/11/24 0024 15:02
 * 显示订单
 */

public class OrderBean {
    /**
     * id : 11
     * addtime : 1511418006000
     * ordernum : dock17112314200001
     * userId : 5
     * type : 3
     * flight : null
     * bybustime : 1511427600000
     * departure : 成都天府广场
     * depLat : 30.66342
     * depLon : 104.072329
     * bourn : 世界贸易中心
     * bouLat : 30.6634311
     * bouLon : 104.07235
     * shijiMoney : 98
     * offstMoney : 2
     * totalMoney : 100
     * driverId : 14
     * carId : 14
     * operaId : null
     * payType : 3
     * state : 3
     * isdelete : 1
     * departtime : 1511427600000
     * phone : null
     * cityCode : 510100
     * greadId : 1
     * coupId : 56
     * ista : 2
     * taname : null
     * taphone : null
     * outofnum : null
     * outofId : 3
     * drivermoney : null
     * servicemoney : null
     */

    private int id;
    private long addtime;
    private String ordernum;
    private int userId;
    private int type;
    private Object flight;
    private long bybustime;
    private String departure;
    private double depLat;
    private double depLon;
    private String bourn;
    private double bouLat;
    private double bouLon;
    private int shijiMoney;
    private int offstMoney;
    private int totalMoney;
    private int driverId;
    private int carId;
    private Object operaId;
    private int payType;
    private int state;
    private int isdelete;
    private long departtime;
    private Object phone;
    private String cityCode;
    private int greadId;
    private int coupId;
    private int ista;
    private Object taname;
    private Object taphone;
    private Object outofnum;
    private int outofId;
    private Object drivermoney;
    private Object servicemoney;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public long getAddtime() {
        return addtime;
    }

    public void setAddtime(long addtime) {
        this.addtime = addtime;
    }

    public String getOrdernum() {
        return ordernum;
    }

    public void setOrdernum(String ordernum) {
        this.ordernum = ordernum;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public Object getFlight() {
        return flight;
    }

    public void setFlight(Object flight) {
        this.flight = flight;
    }

    public long getBybustime() {
        return bybustime;
    }

    public void setBybustime(long bybustime) {
        this.bybustime = bybustime;
    }

    public String getDeparture() {
        return departure;
    }

    public void setDeparture(String departure) {
        this.departure = departure;
    }

    public double getDepLat() {
        return depLat;
    }

    public void setDepLat(double depLat) {
        this.depLat = depLat;
    }

    public double getDepLon() {
        return depLon;
    }

    public void setDepLon(double depLon) {
        this.depLon = depLon;
    }

    public String getBourn() {
        return bourn;
    }

    public void setBourn(String bourn) {
        this.bourn = bourn;
    }

    public double getBouLat() {
        return bouLat;
    }

    public void setBouLat(double bouLat) {
        this.bouLat = bouLat;
    }

    public double getBouLon() {
        return bouLon;
    }

    public void setBouLon(double bouLon) {
        this.bouLon = bouLon;
    }

    public int getShijiMoney() {
        return shijiMoney;
    }

    public void setShijiMoney(int shijiMoney) {
        this.shijiMoney = shijiMoney;
    }

    public int getOffstMoney() {
        return offstMoney;
    }

    public void setOffstMoney(int offstMoney) {
        this.offstMoney = offstMoney;
    }

    public int getTotalMoney() {
        return totalMoney;
    }

    public void setTotalMoney(int totalMoney) {
        this.totalMoney = totalMoney;
    }

    public int getDriverId() {
        return driverId;
    }

    public void setDriverId(int driverId) {
        this.driverId = driverId;
    }

    public int getCarId() {
        return carId;
    }

    public void setCarId(int carId) {
        this.carId = carId;
    }

    public Object getOperaId() {
        return operaId;
    }

    public void setOperaId(Object operaId) {
        this.operaId = operaId;
    }

    public int getPayType() {
        return payType;
    }

    public void setPayType(int payType) {
        this.payType = payType;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public int getIsdelete() {
        return isdelete;
    }

    public void setIsdelete(int isdelete) {
        this.isdelete = isdelete;
    }

    public long getDeparttime() {
        return departtime;
    }

    public void setDeparttime(long departtime) {
        this.departtime = departtime;
    }

    public Object getPhone() {
        return phone;
    }

    public void setPhone(Object phone) {
        this.phone = phone;
    }

    public String getCityCode() {
        return cityCode;
    }

    public void setCityCode(String cityCode) {
        this.cityCode = cityCode;
    }

    public int getGreadId() {
        return greadId;
    }

    public void setGreadId(int greadId) {
        this.greadId = greadId;
    }

    public int getCoupId() {
        return coupId;
    }

    public void setCoupId(int coupId) {
        this.coupId = coupId;
    }

    public int getIsta() {
        return ista;
    }

    public void setIsta(int ista) {
        this.ista = ista;
    }

    public Object getTaname() {
        return taname;
    }

    public void setTaname(Object taname) {
        this.taname = taname;
    }

    public Object getTaphone() {
        return taphone;
    }

    public void setTaphone(Object taphone) {
        this.taphone = taphone;
    }

    public Object getOutofnum() {
        return outofnum;
    }

    public void setOutofnum(Object outofnum) {
        this.outofnum = outofnum;
    }

    public int getOutofId() {
        return outofId;
    }

    public void setOutofId(int outofId) {
        this.outofId = outofId;
    }

    public Object getDrivermoney() {
        return drivermoney;
    }

    public void setDrivermoney(Object drivermoney) {
        this.drivermoney = drivermoney;
    }

    public Object getServicemoney() {
        return servicemoney;
    }

    public void setServicemoney(Object servicemoney) {
        this.servicemoney = servicemoney;
    }

//1=接机 2=送机 3=接站 4=送站
    public String getTypeString() {
        switch (type) {
            case 1:return "接机";
            case 2:return "送机";
            case 3:return "接站";
            default:return "送站";
        }
    }

    /**
     * 1=待支付 2=待接单 3=司机已接单 4=出发前往预约地点 5=到达预约地点
     * 6=开始行程(开始服务了) 7=完成未评价 8=已评价 9=无偿取消(飞机延误或者没司机接单的时候) 10=有偿取消(3种收费)
     * @return
     */
    public String getStateString() {
        switch (state) {
            case 1:return "待支付";
            case 2:return "待接单";
            case 3:return "司机已接单";
            case 4:return "出发前往预约地点";
            case 5:return "到达预约地点";
            case 6:return "开始行程";
            case 7:return "完成未评价";
            case 8:return "已评价";
            case 9:return "无偿取消";
            default:return "有偿取消";
        }
    }
    public int getTypeImg() {
        switch (type) {
            case 1:return R.mipmap.jieji_liebiao;
            case 2:return R.mipmap.songji_liebiao;
            case 3:return R.mipmap.jiezhan_liebiao;
            default:return R.mipmap.songzhan_liebiao;
        }
    }
    public int getBackgroundImg() {
        switch (type) {
            case 1:return R.mipmap.jieji_layout;
            case 2:return R.mipmap.songji_layout;
            case 3:return R.mipmap.jiezhan_layout;
            default:return R.mipmap.songzhan_layout;
        }
    }
}
